﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/manage.master" AutoEventWireup="true"
    CodeFile="serEdit.aspx.cs" Inherits="serEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" href="../kindeditor-4.1.3/themes/default/default.css" />
    <link rel="stylesheet" href="../kindeditor-4.1.3/plugins/code/prettify.css" />
    <script type="text/javascript" src="../kindeditor-4.1.3/kindeditor.js"></script>
    <script type="text/javascript" src="../kindeditor-4.1.3/lang/zh_CN.js"></script>
    <script type="text/javascript" src="../kindeditor-4.1.3/plugins/code/prettify.js"></script>
    <script type="text/javascript">
        var edit1
        KindEditor.ready(function (K) {
            var editor1 = K.create('#<%=txtContent.ClientID %>', {
                cssPath: '../kindeditor-4.1.3/plugins/code/prettify.css',
                uploadJson: '../kindeditor-4.1.3/asp.net/upload_json.ashx',
                fileManagerJson: '../kindeditor-4.1.3/asp.net/file_manager_json.ashx',
                allowFileManager: true,
                afterCreate: function () {
                    var self = this;
                    edit1 = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                }
            });

            prettyPrint();

        });
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="main" runat="server">
    <table width="100%">
        <tr>
            <td>
                <span>服务名称：</span>
            </td>
            <td>
                <asp:TextBox ID="txtName" runat="server" Width="456"></asp:TextBox>
            </td>
        </tr>
        
        <tr>
            <td>
                <span>备注：</span>
            </td>
            <td>
                <asp:TextBox ID="txtRemark" runat="server" Width="456"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                <span>介绍：</span>
            </td>
            <td>
                <asp:TextBox ID="txtContent" Width="456" Height="200" TextMode="MultiLine" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                <span>排列位置：</span>
            </td>
            <td>
                <asp:DropDownList ID="ddlSort" runat="server">
                    <asp:ListItem Selected="True" Text="第一位" Value="1"></asp:ListItem>
                    <asp:ListItem Text="第二位" Value="2"></asp:ListItem>
                    <asp:ListItem Text="第三位" Value="3"></asp:ListItem>
                    <asp:ListItem Text="第四位" Value="4"></asp:ListItem>
                    <asp:ListItem Text="第五位" Value="5"></asp:ListItem>
                    <asp:ListItem Text="第六位" Value="6"></asp:ListItem>
                    <asp:ListItem Text="第七位" Value="7"></asp:ListItem>
                    <asp:ListItem Text="第八位" Value="8"></asp:ListItem>
                    <asp:ListItem Text="第九位" Value="9"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style1">
            </td>
            <td>
                <input type="reset" value="清空" />&nbsp;&nbsp;&nbsp;<asp:Button ID="btnAdd" runat="server"
                    Text="添加" OnClick="btnAdd_Click" />
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="hdId" runat="server" />
    </asp:Content>
